package com.xiaobai.model.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaobai.common.utils.validate.EditGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author author
 * @since 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dict")
@Tag(name="Dict对象", description="字典表")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "主键id不能为空", groups = {EditGroup.class})
    private Long id;

    @Schema(description = "父主键")
    private Long parentId;

    @Schema(description = "字典码")
    private String code;

    @Schema(description = "字典值")
    private String dictKey;

    @Schema(description = "字典名称")
    private String dictValue;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "字典备注")
    private String remark;

    @Schema(description = "是否封存")
    private String isSealed;

    @Schema(description = "是否删除")
    private String isDeleted;


}
